import {lazy} from "react"


let RouterList=[
    {
        path:"/all",
        component:lazy(()=>import("../view/all")),
        children:[
            {
                path:"/all/home",
                component:lazy(()=>import("../view/all/home")),  
            },
            {
                path:"/all/classfils",
                component:lazy(()=>import("../view/all/classfils")),  
            },
            {
                path:"/all/my",
                component:lazy(()=>import("../view/all/my")),  
            },
            {
                from:"/all",
                to:"/all/home"
            }
        ]
    },
    {
        path:"classfil/:type",
        component:lazy(()=>import("../view/classfil")),  
    },
    {
        path:"/deil",
        component:lazy(()=>import("../view/deil"))
    },

    {
        from:"/",
        to:"/all"
    }
]

export default RouterList;
